package com.apptravel.dao;

import com.apptravel.entity.AirLineComp;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: jason
 * Date: 12-7-23
 * Time: 下午3:25
 * To change this template use File | Settings | File Templates.
 */
public interface AirLineCompDAO {

    /**
     * 删除.
     *
     * @param id
     * @return
     */
    int delete(Long id);

    /**
     * 按MAP删除.
     *
     * @param params
     * @return
     */
    int deleteByMap(Map<String, Object> params);

    /**
     * 保存.
     * @param record
     */
    void insert(AirLineComp record);

    /**
     * 查找单一实例.
     * @param id
     * @return
     */
    AirLineComp selectById(Long id);

    /**
     * 更新单 一实例.
     * @param record
     * @return
     */
    int updateById(AirLineComp record);

    /**
     * 分页列表.
     *
     * @param params
     * @param pageNo
     * @param pageSize
     * @return
     */
    Page<AirLineComp> getList(Map<String, Object> params, int pageNo, int pageSize);
}
